/*******************************************************************************
 * Name    : KiObjectTestClass.cc
 * Date    : 01-17-2014
 * Author  : Sylvain Nieuwlandt -- nicholas.rush.developper@gmail.com
 ******************************************************************************/
#include "KiObjectTestClass.hpp"

KiObjectTestClass::KiObjectTestClass() {
  this->m_className = "KiObject";
}
/******************************************************************************/

KiObjectTestClass::~KiObjectTestClass() {

}
/******************************************************************************/

void KiObjectTestClass::run() {
  this->constructorTest();
  this->equalsFailTest();
  this->equalsTest();
}
/******************************************************************************/

void KiObjectTestClass::constructorTest() {
  KiObject *test = NULL;
  test = new KiObject();

  assertNotNull(test, 
		"KiObjectTestClass::constructorTest",
		"The KiObject construtor doesn't made anything");
}

/******************************************************************************/

void KiObjectTestClass::equalsFailTest() {
  KiObject *obj1 = new KiObject();
  KiObject *obj2 = new KiObject();
 
  assertFalse(obj1->equals(obj2),
	      "KiObjectTestClass::equalsFailTest",
	      "The Object obj1 shouldn't be equals to obj2");
}
/******************************************************************************/

void KiObjectTestClass::equalsTest() {
  KiObject *obj1 = new KiObject();

  assertTrue(obj1->equals(obj1),
	      "KiObjectTestClass::equalsTest",
	      "The Object obj1 should be equals to obj1");
}
/******************************************************************************/
